import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import { store, key } from './store'
import elementPlus from './plugins/element-plus'
import './styles/index.scss'
const modules = import.meta.globEager('./components/**/index.ts')

const app = createApp(App)
app
  .use(router)
  .use(store, key)
  .use(elementPlus)
for (const path in modules) {
  app.use(modules[path].default)
}
app.mount('#app')
